package com.mhs.sucalculator;

import com.mhs.sucalculator.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LaunchActivity extends Activity {
	private Button button_enter=null;
	private Button button_exit=null;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        button_enter=(Button)findViewById(R.id.button_enter);
        button_enter.setOnClickListener(new ButtonEnterListener());
        button_exit=(Button)findViewById(R.id.button_exit);
        button_exit.setOnClickListener(new ButtonExitListener());
    }
    
    class ButtonEnterListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent=new Intent(LaunchActivity.this, CalculatorActivity.class);
			startActivity(intent);
		}
    	
    }
    
    class ButtonExitListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			finish();
		}
    	
    }
}